package com.bsgogogo.entity;

import java.util.List;

/**
 * 账户信息
 */

public class AuthorityInfo {
    private Integer level;  //用于标识用户=2以及管理员=1
    private String name;  // "用户" 与 "管理员"
    private List<Model> models;

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Model> getModels() {
        return models;
    }

    public void setModels(List<Model> models) {
        this.models = models;
    }

    public static class Model {
        private Integer modelId; //标识模块种类 对应用户看得到 哪些管理者看得到
        private List<Integer> operation;

        public Integer getModelId() {
            return modelId;
        }

        public void setModelId(Integer modelId) {
            this.modelId = modelId;
        }

        public List<Integer> getOperation() {
            return operation;
        }

        public void setOperation(List<Integer> operation) {
            this.operation = operation;
        }
    }
}
